﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCP.Master" AutoEventWireup="true" CodeBehind="Topics.aspx.cs" Inherits="University.Workshop.WebApp.Topics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            width: 409px;
            height: 48px;
        }
        .style3
        {
            width: 409px;
            height: 21px;
        }
        .style4
        {
            height: 169px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<table>
    <tr>
        <td class="style3">
    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" 
        Font-Bold="True" Font-Size="Large" ForeColor="Blue">Back</asp:LinkButton>
            <br />
            <br />
            <br />
            <asp:Label ID="LblGroup" runat="server" Font-Size="Large" ForeColor="#003366"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style4">
       <asp:DataGrid ID="TopicGrid" runat="server" PageSize="5" AllowPaging="True" DataKeyField="TopicId"
            AutoGenerateColumns="False" CellPadding="4" ForeColor="#003366" 
                GridLines="None" OnSelectedIndexChanged="SelectedItemChaged" 
                OnPageIndexChanged="OnPageIndexChanged" oneditcommand="TopicGrid_EditCommand"
             >
            <Columns>
            <asp:EditCommandColumn EditText="select"></asp:EditCommandColumn>
                <asp:BoundColumn HeaderText="Topic Id" DataField="TopicId" Visible="false"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Topic" DataField="Title" HeaderStyle-Width="500">
                

<HeaderStyle Width="500px"></HeaderStyle></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Date" DataField="CreationDate" HeaderStyle-Width="100">
<HeaderStyle Width="100px"></HeaderStyle>
                </asp:BoundColumn>
                <asp:BoundColumn HeaderText="User Id" DataField="UserId" visible="false"></asp:BoundColumn>
               
            </Columns>
            <EditItemStyle BackColor="#003366" ForeColor="White" />
            <FooterStyle BackColor="#003366" Font-Bold="True" ForeColor="White" />
            <SelectedItemStyle BackColor="White" Font-Bold="True" ForeColor="#003366" />
            <PagerStyle BackColor="#003366" ForeColor="White" HorizontalAlign="Center" 
                Mode="NumericPages" />
            <AlternatingItemStyle BackColor="#003366" ForeColor="White" />
            <ItemStyle BackColor="#003366" ForeColor="White" />
            <HeaderStyle BackColor="#3a4f63" Font-Bold="True" ForeColor="White" />
        </asp:DataGrid>
        </td>
    </tr>
    <tr>
        <td class="style2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" BackColor="#336699" Font-Bold="True" 
                Font-Size="Small" ForeColor="White" Text="Add Topic" 
                onclick="Button1_Click" />
        </td>
    </tr>
    <tr><td>
        <asp:Label ID="LabelE" runat="server" ForeColor="Red"></asp:Label>
        </td>
    </tr>
</table>
</asp:Content>
